package com.shoe.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jptangchina.jxcel.annotation.JxcelCell;
import com.jptangchina.jxcel.annotation.JxcelSheet;
import lombok.Builder;
import lombok.ToString;

import java.util.Date;

@ToString
public class ShoeDepot {
    private Long depotId;

    @JxcelCell("商品编号")
    private Long depotGoodId;
    @JxcelCell("商品尺码")
    private Integer depotGoodSize;
    @JxcelCell("商品数量")
    private Short depotGoodCount;

    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date updateTime;

    private String reserve1;

    private String reserve2;

    private String reserve3;

    public boolean isNull(){
        if(depotGoodId == null || depotGoodSize == null || depotGoodCount == null){
            return false;
        }
        return true;
    }

    public Long getDepotId() {
        return depotId;
    }

    public void setDepotId(Long depotId) {
        this.depotId = depotId;
    }

    public Long getDepotGoodId() {
        return depotGoodId;
    }

    public void setDepotGoodId(Long depotGoodId) {
        this.depotGoodId = depotGoodId;
    }

    public Integer getDepotGoodSize() {
        return depotGoodSize;
    }

    public void setDepotGoodSize(Integer depotGoodSize) {
        this.depotGoodSize = depotGoodSize;
    }

    public Short getDepotGoodCount() {
        return depotGoodCount;
    }

    public void setDepotGoodCount(Short depotGoodCount) {
        this.depotGoodCount = depotGoodCount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getReserve1() {
        return reserve1;
    }

    public void setReserve1(String reserve1) {
        this.reserve1 = reserve1 == null ? null : reserve1.trim();
    }

    public String getReserve2() {
        return reserve2;
    }

    public void setReserve2(String reserve2) {
        this.reserve2 = reserve2 == null ? null : reserve2.trim();
    }

    public String getReserve3() {
        return reserve3;
    }

    public void setReserve3(String reserve3) {
        this.reserve3 = reserve3 == null ? null : reserve3.trim();
    }
}